From 27b0321decbd203ef85bea0071c185b8c486797e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 2 May 2023 13:17:41 -0400 Subject: [PATCH] Expand gtk_init docs Make it clear that some aspects of GApplication functionality happen before startup. Fixes: #5781 --- gtk/gtkmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 85f90f1e4b..9c07e3d652 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -637,8 +637,10 @@ gtk_init_check (void) * applications. It will initialize everything needed to operate the * toolkit. * - * If you are using `GtkApplication`, you don't have to call this - * function; the `GApplication::startup` handler does it for you. + * If you are using `GtkApplication`, you usually don't have to call this + * function; the `GApplication::startup` handler does it for you. Though, + * if you are using GApplication methods that will be invoked before `startup`, + * such as `local_command_line`, you may need to initialize stuff explicitly. * * This function will terminate your program if it was unable to * initialize the windowing system for some reason. If you want -- 2.30.2